package com.kuang.controller;

import com.kuang.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/user02")
public class UserController02 {
    @GetMapping("/t2")
    public String user02(User user, Model model){
        model.addAttribute("msg",user);
        System.out.println(user);
        return "test";
    }
}
